package com.jenkins.test.config.mb;

import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @version V1.0.0
 * @ClassName: {@link MybatisPlusConfig}
 * @Description: MybatisPlusConfig
 * @author: Lanzhou
 * @date: 2021/6/25 10:18
 * @Copyright:2020 All rights reserved.
 */
@Configuration
public class MybatisPlusConfig {

    /**
     * 批量插件
     * @return
     */
    @Bean
    public BatchInsetSqlInjector baseSqlInjector() {
        return new BatchInsetSqlInjector();
    }

    /**
     * 分页插件
     *
     * @return PaginationInterceptor
     */
    @Bean
    public MybatisPlusInterceptor paginationInterceptor() {
        return new MybatisPlusInterceptor();
    }


}
